package top.ntboy.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import top.ntboy.demo.domain.Student;
import top.ntboy.demo.mapper.StudentMapper;
import top.ntboy.demo.service.StudentService;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    StudentMapper studentMapper;

    @Override
    @Transactional
    public List<Student> getAllStudent() {
        return studentMapper.selectAll();
    }
}
